package com.mx.pediatria.web;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;

import com.mx.pediatria.servicio.PersonaService;

@ManagedBean(name = "personaMB")
public class PersonaMB {

   //Spring Customer Service is injected...
    @ManagedProperty(value="#{PersonaService}")
    PersonaService personaService;
 
	
	public String saludar(){
		System.out.println("SALUDO en MB");
		personaService.saludarService();
		return "index";
	}


	public PersonaService getPersonaService() {
		return personaService;
	}


	public void setPersonaService(PersonaService personaService) {
		this.personaService = personaService;
	}
	
	
	
	
	
}